public class LDoubleSetting extends LUserSetting<java.lang.Double>
LUserSetting.UpdateCaretHandler, LUserSetting.UpdateChangeHandler, LUserSetting.UpdateHandlerLHelpComponent.HelpActionHandler, LHelpComponent.HelpFocusHandler, LHelpComponent.HelpMouseHandler| Modifier and Type | Field and Description |
|---|---|
protected LDoubleSpinner |
setting |
titleLabelfollowPos, help, helpPrefix, helpYoffset, save, saveTie, title| Constructor and Description |
|---|
LDoubleSetting(java.lang.String text,
java.awt.Font font,
java.awt.Color c,
double min,
double max,
double step) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener c) |
void |
addFocusListener(java.awt.event.FocusListener arg0) |
protected void |
addHelpHandler(boolean hoverListener)
Adds a help handler to each GUI component that should trigger the help
panel to update.
|
protected void |
addUpdateHandlers()
Abstract function that should add appropriate update handlers to the
appropriate components.
|
void |
clearHighlight()
Abstract function that should clear any GUI components of their highlighted state.
|
java.lang.Double |
getValue() |
void |
highlightChanged()
Abstract function that should change some GUI component to symbolize
it is highlighted.
|
void |
linkTo(java.lang.Enum s,
LSaveFile save,
LHelpPanel help_,
boolean hoverListener)
Sets the target help panel, and sets the help info to the setting's
helpInfo in the savefile.
|
boolean |
revertTo(java.util.Map<java.lang.Enum,Setting> m)
Reverts the GUI component to to SaveFile instance specified.
|
void |
setColor(java.awt.Color c) |
void |
setLocation(int x,
int y) |
void |
setLocation(java.awt.Point p) |
void |
setValue(double d) |
void |
setValue(java.lang.String s) |
void |
tie(java.lang.Enum s,
LSaveFile save_)
Ties this GUI component to a setting in a savefile.
|
void |
tie(java.lang.Enum s,
LSaveFile save_,
LHelpPanel help_,
boolean hoverHandler)
Ties this GUI component to a setting in a savefile.
|
getName, isTied, updateaddHelpPrefix, getHelp, hasHelp, isFollowingPosition, setFollowPosition, updateHelpAdd, centerIn, centerOn, centerOn, getBottom, getCenter, getRight, putUnderadd, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTreeaction, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected LDoubleSpinner setting
public LDoubleSetting(java.lang.String text,
java.awt.Font font,
java.awt.Color c,
double min,
double max,
double step)
text - font - c - min - max - step - public void setValue(java.lang.String s)
s - public void setValue(double d)
d - public final void tie(java.lang.Enum s,
LSaveFile save_,
LHelpPanel help_,
boolean hoverHandler)
LUserSettingtie in class LUserSetting<java.lang.Double>s - Setting to tie tosave_ - SaveFile to tie tohelp_ - HelpPanel to updatehoverHandler - Whether to update help panel on hoverpublic void linkTo(java.lang.Enum s,
LSaveFile save,
LHelpPanel help_,
boolean hoverListener)
LHelpComponentlinkTo in class LHelpComponentpublic void tie(java.lang.Enum s,
LSaveFile save_)
LUserSettingtie in class LUserSetting<java.lang.Double>s - Setting to tie tosave_ - SaveFile to tie topublic java.lang.Double getValue()
getValue in class LUserSetting<java.lang.Double>public void addFocusListener(java.awt.event.FocusListener arg0)
addFocusListener in class java.awt.Componentpublic void addChangeListener(javax.swing.event.ChangeListener c)
c - public void setColor(java.awt.Color c)
c - public void highlightChanged()
LUserSettinghighlightChanged in class LUserSetting<java.lang.Double>public void clearHighlight()
LUserSettingclearHighlight in class LUserSetting<java.lang.Double>protected void addUpdateHandlers()
LUserSettingaddUpdateHandlers in class LUserSetting<java.lang.Double>public boolean revertTo(java.util.Map<java.lang.Enum,Setting> m)
LUserSettingrevertTo in class LUserSetting<java.lang.Double>protected void addHelpHandler(boolean hoverListener)
LHelpComponentaddHelpHandler in class LHelpComponentpublic final void setLocation(int x,
int y)
setLocation in class java.awt.Componentpublic final void setLocation(java.awt.Point p)
setLocation in class java.awt.Component